//
//  GLNetworkManager.h
//  AFNetworkingTool
//
//  Created by CoderGL on 15/11/5.
//  Copyright © 2015年 CoderGL. All rights reserved.
//  网络管理类 对网络高度封装 传进来的是模型  传出去的也是模型 不再面向字典开发

#import <Foundation/Foundation.h>
#import "AFNetworkingTool.h"
#import "MJExtension.h"
@interface GLNetworkManager : NSObject


/**
 *  检测网络状态
 *
 *  @param success 有网络
 *  @param failure 无网络
 */
+ (void)netWorkingStatusSuccess:(void(^)())success failure:(void(^)())failure;


/**
 *  模型网络管理类get请求
 *
 *  @param url         url
 *  @param param       模型
 *  @param resultClass 模型的类
 *  @param success     success
 *  @param failure     failure
 */
+ (void)getWithUrl:(NSString *)url param:(id)param resultClass:(Class)resultClass success:(void (^)(id response))success failure:(void (^)(NSError *error))failure;


/**
 *  模型网络管理类post请求
 *
 *  @param url         url
 *  @param param       模型
 *  @param resultClass 模型的类
 *  @param success     success
 *  @param failure     failure
 */+ (void)postWithUrl:(NSString *)url param:(id)param resultClass:(Class)resultClass success:(void (^)(id response))success failure:(void (^)(NSError *error))failure;



@end
